package com.hy.study.utils;

public class BSException extends RuntimeException {
 
    private int code;
    private String msg;
 
    public BSException(ErrorEnum errEnum, Exception e) {
        super(e);
        this.code = errEnum.getCode();
        this.msg = errEnum.getMsg();
    }
 
    public int getCode() {
        return code;
    }
 
    public void setCode(int code) {
        this.code = code;
    }
 
    public String getMsg() {
        return msg;
    }
 
    public void setMsg(String msg) {
        this.msg = msg;
    }
}